import requests

url = 'https://fanyi.baidu.com/sug'
str = input('查询：')
data = {'kw': str }
res = requests.post(url=url,data = data)

# print(res.text)
#返回的是json
print(res.json())